<?php
function image_uri($content, $mime) {

  $base64 = base64_encode($content);
  return 'data:' . $mime . ';base64,' . $base64;
}

?>
